package com.wg.dome.operation;

import com.wg.core.net.OperationRequest;
import com.wg.core.annotation.DataMember;
import com.wg.net.rpc.Operation;

/**
 * 创建玩家请求
 */
public class CreatePlayerRequest extends Operation {
    /**
     * 客户端唯一id
     */
    @DataMember(code = 1)
    private String clientId;
    /**
     * 玩家昵称
     */
    @DataMember(code = 2)
    private String name;
    /**
     * 性别 true 男 false 女
     */
    @DataMember(code = 3)
    private boolean sex;

    public CreatePlayerRequest(){}

    public CreatePlayerRequest(OperationRequest operationRequest){
        super(operationRequest);
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean getSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }
}
